#include <stdio.h>
/*
    author: maxiao
    date: 2023-04-02 18:38
    description: 向文件中写入数据
 */

int main()
{
    FILE *fp;
    fp = fopen("info.txt", "w+");
    fprintf(fp, "长风破浪会有时，\n");
    fputs("直挂云帆济沧海。\n", fp);
    fclose(fp);
    return 0;
}
